<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <style>
        form {
            border: black 1px solid;
            width: 300px;
            height: 200px;
            margin: auto;
            padding: 30px 10px;
        }
        .inmedium {
            display: inline-block;
            width: 100%;
            text-align: center;
        }
        .inleft {
            padding-left: 50px;
        }
        a {
            color: blue;
            text-decoration: underline;
            font-size: 12px;
            }
        #title {
            font-size: 20px;
            color: black;
            }
        #login {
            width: 210px;
            height: 30px;
            border: none;
            border-radius: 2px;
            padding: 5px;
            background-color: red;
            color: white;
            cursor: pointer;
        }
        #num,#psd {
            width: 200px;
            height: 20px;
            border: black 1px solid;
            border-radius: 2px;
            padding: 5px;
        }
    </style>
    <script>
        function mylogin() {
            var num = document.getElementById("num").value;
            var psd = document.getElementById("psd").value;

            if (num == "1" && psd == "1") {
                alert("登陆成功！");
            } else {
                alert("账号或密码错误！");
            }
        }
    </script>
</head>
<body>
    <form>
        <div class="inmedium">
            <label id="title">华为账号登陆</label><br><br>  
            <input type="text" id="num"><br><br>
            <input type="password" id="psd">
        </div><br>
        <div class="inleft">
            <a href="#">短信验证码登录</a>
        </div>
        <div class="inmedium">
            <input type="button" id="login" value="登陆" onclick="mylogin()">
        </div>
        <div class="inmedium">
            <a href="#">注册</a>
            <a href="#">忘记密码</a>
        </div>
    </form>
</body>
</html>
